// Copyright 2010 Alexandre Tristan St-Cyr <tristan.stcyr@gmail.com>

package com.codeplex.loadjava;

import java.sql.Connection;
import java.sql.SQLException;

public interface ISQLConnectionFactory {

	/**
	 * @param server The name of the server.
	 * @param database The name of the database
	 * @param username
	 * @param password
	 * @throws SQLException If an error occured while establishing a connection to the database
	 * @throws ClassNotFoundException If the database driver cannot be found
	 */
	Connection createConnection(String server, String database,
			String username, String password) throws SQLException, ClassNotFoundException;

}